package com.fay.designPattern.principles.pro2;

import feign.RequestInterceptor;
import feign.RequestTemplate;

/**
 * @Title:
 * @Description:
 * @Author Fay Wang
 * @Date 2022/3/21 15:35
 * @Version 1.0
 */
public class RequestHeadersInterceptor implements RequestInterceptor {
    @Override
    public void apply(RequestTemplate requestTemplate) {
        requestTemplate.header("appId", "...");
        requestTemplate.header("version", "...");
        requestTemplate.header("timestamp", "...");
        requestTemplate.header("token", "...");
        requestTemplate.header("idempotent-token", "...");
        requestTemplate.header("sequence-id", "...");
    }
}
